package com.zy.oopthis;

public class Person {
    String name;
    Person(String name){
        this.name = name;}
    public void getInfo(){
        System.out.println("Person类 --> " + this.name) ;
    }
    public boolean compare(Person p){
        return this.name == p.name;
    }

}
